home *** CD-ROM | disk | FTP | other *** search
- Path: news.cyberport.com!usenet
- From: tangent@cyberport.com (Warren Young)
- Newsgroups: comp.lang.c++
- Subject: Re: Parsing library for PC, C or C++, LEX for PC
- Date: Wed, 21 Feb 1996 17:48:45 GMT
- Organization: none
- Message-ID: <312b5997.211925703@news.cyberport.com>
- References: <4ftdjc$3dc@utopia.hacktic.nl> <JARNOT.96Feb15163033@box10.dstar.iddis.com>
- NNTP-Posting-Host: ppp12.cyberport.com
- X-Newsreader: Forte Agent .99d/32.182
-
- jarnot@iddis.com (Kevin J. Jarnot) wrote:
-
- > Mike> I'm looking for something
- > Mike> like the LEX utility for UNIX but for the PC. Of course my
- > Mike> preference is for shareware (freeware) but a low cost
- > Mike> alternative would also be helpful.
- >
- >Both FLEX and BISON are available for DOS. Try looking on
- >ftp://prep.ai.mit.edu/pub/gnu
-
- They're available, but the code they generate depends heavily on a
- more relaxed UNIX-oriented compiler. I don't know about other
- compilers, but Borland C++ goes into the screaming heebie jeebies when
- you throw flex/bison output at it. Maybe you can find the right
- warning combo to turn off, but I didn't have the time or the
- inclination to mess with it further.
-
- If you still want to give them a shot, though, you'll have to look
- elsewhere. I get my GNUish stuff at
- ftp://oak.oakland.edu/SimTel/vendors/gnu/gnuish. Get 00_index.txt and
- it'll tell you everything. You might also look at the alternatives in
- /SimTel/msdos/c and /SimTel/msdos/pgmutil. If you have the djgpp
- compiler, life will probably be much easier for you than it was for
- me.
-
- I haven't tried it, but I'd bet that if you had the money one of the
- commercial alternatives would be much less painful and probably easier
- to use. Sandstone Technology offers Visual Parse++, Abraxas has
- PC-YACC, and Mortice Kern Systems has MKS lex/yacc. The latter is the
- most likely to follow UNIX lex/yacc, and the former is the most
- different, though many claim it makes building scanners and parsers
- much easier.
-
- Good luck,
-
- = Warren --
-